package com.example.interceptor.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {
    @RequestMapping("/hi")
    public String sayHi() throws InterruptedException {
        System.out.println("执行 sayHi 方法");
        return "Hello, world.";
    }
}
